//
//  config.swift
//  jocool
//
//  Created by tong on 16/6/11.
//  Copyright © 2016年 zhuxietong. All rights reserved.
//

import Foundation


public struct FK {
    
    public typealias ValueChangeBlock = (NSMutableDictionary,Any?) -> Void
    
    public static func types(names:[String])->[[String:String]]{
        return names.map({ (one) -> [String:String] in
            return ["name":one,"id":one]
        })
    }
    public static var value             = "value"
    public static var valueDisplay      = "valueDisplay"
    
    
    public static var defaultV          = "defaultV"            //设置值
    public static var emptyV            = "emptyV"              //设置没有选择，填写时的值
    
    
    public static var options           = "options"             //选择项
    public static var fields            = "fields"
    public static var field             = "field"
    public static var editble           = "editable"
    public static var selected          = "selected"
    public static var YES               = "YES"
    public static var NO                = "NO"
    public static var listSeparator     = "listSeparator"

    
    public static var tiny_hex          = "tiny_hex"
    
    
    public static var keyboardType      = "keyboardType"
    public static var min_num           = "min_num"
    public static var min_num_mark      = "min_num_mark"
    public static var max_mum           = "max_mum"
    public static var max_mum_mark      = "max_mum_mark"
    
    public static var checks            = "checks"//对表单的内容做预检查,用逗号隔开 eg:"name,age"
    
    public static var isSecureTextEntry = "isSecureTextEntry"
    
    
    public static var changeBlock       = "changeBlock"
    
    public static var hiden             = "hiden"
    
    public static var selectMode        = "selectMode"
    
    
    
    
    public static var placeholder       = "placeholder"
    
    public static var time_value_format   = "STAMP"
    public static var time_display_format = "yyyy年MM月dd日"
    
    
    public static var remoteTimeStamp = Date().stamp
    
    
}
